package com.eg.egent.example;

import com.alibaba.fastjson.JSONObject;
import com.eg.egent.example.common.Constants;
import com.eg.egent.example.common.ApiUtil;

/**
 * @Description: 单门点单门卡授权示例程序
 * @author liangjiange
 * @date 2016年10月11日 上午11:42:19
 */
public class PopedomOCODSetExample {

	private static Integer encrypt = Constants.ENCRYPT_NO;

	private static Integer signMethod = Constants.SIGN_METHOD_HMAC;

	private static String taskDesc = "单门点单门卡授权";

	public static void main(String[] args) {

		JSONObject mainContent = new JSONObject();
		mainContent.put("method", "popedom.ocod.set");
		mainContent.put("main_control_mac", "08:16:00:00:09:18");
		mainContent.put("comm_code", 100);
		mainContent.put("card_number", 459540545);
		mainContent.put("time_type", 0);
		mainContent.put("start_date", "2016-10-01");
		mainContent.put("start_time", "08:00");
		mainContent.put("end_date", "2016-12-01");
		mainContent.put("end_time", "23:00");
		mainContent.put("week_option", "1111111");

		ApiUtil.excute(encrypt, signMethod, taskDesc, mainContent);

	}

}
